package com.team5101.configEntity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


@Data
@Component
@ConfigurationProperties(prefix = "rpc.producer")
@PropertySource(value = "classpath:rpc.properties", encoding = "utf-8", ignoreResourceNotFound = true)
public class RpcProperties {

    private String producerName;

    private String host;

    private int port;

}

